package com.sg.business.work.handler;

import org.eclipse.swt.widgets.Control;

import com.sg.business.commons.operation.action.AbstractWorkDetailPageAction;
import com.sg.business.commons.ui.UIFrameworkUtils;
import com.sg.business.model.Work;
import com.sg.widgets.part.sidebar.SideBarNavigator;

public class WorkDeliveryDocumentHandler extends AbstractWorkDetailPageAction {

	@Override
	public void run(Work work, Control control) {
		SideBarNavigator sidebar = UIFrameworkUtils.getSidebar();
		sidebar.setSelection("1", work);
		UIFrameworkUtils.navigateTo(work, UIFrameworkUtils.NAVIGATE_AUTOSELECT,
				true, "deliverable");
	}

}
